<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="zh">
<head>
    <meta charset="UTF-8">
    <title>注册验证码</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            padding: 20px;
        }
        .email-container {
            background-color: #fff;
            border-radius: 5px;
            padding: 20px;
            max-width: 600px;
            margin: auto;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        h2 {
            color: #333;
        }
        .code {
            font-size: 24px;
            font-weight: bold;
            color: #007BFF;
        }
        .footer {
            margin-top: 20px;
            font-size: 14px;
            color: #999;
        }
    </style>

</head>
<body>
<div class="email-container">
    <h2>欢迎注册我们的系统</h2>
    <p>您好，<span th:text="${name}"></span>：</p>
    <p>请使用以下验证码完成注册流程：</p>
    <p class="code" th:text="${code}"></p>
    <p class="footer">此验证码将在 5 分钟后过期，请尽快使用。</p>
</div>

</body>
</html>